﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sunboxsoft.ASMS.Client.Domain.WebRef
{
    public partial class EStockDecreaseBillItem
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string WarehouseName { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal StockCount { get; set; }

        /// <summary>
        /// 获取总成本
        /// </summary>
        public decimal Amount
        {
            get
            {
                return this.Price *this.Count;
            }
        }

        public EStockDecreaseBillItem()
        {
        }

        public EStockDecreaseBillItem(Guid warehouseId, string warehouseName, Guid materialId, string materialName, decimal stockCount)
        {
            this.WarehouseId = warehouseId;
            this.WarehouseName = warehouseName;
            this.MaterialId = materialId;
            this.MaterialName = materialName;
            this.StockCount = stockCount;
        }
    }
}
